import uvicorn
from server import app, AppConfig  # noqa: F401

if __name__ == '__main__':
    uvicorn.run(
        app='app:app',
        host=AppConfig.app_host,
        port=AppConfig.app_port,
        # 修复localhost:9099/docs打不开swagger页面问题
        # root_path=AppConfig.app_root_path,
        reload=AppConfig.app_reload,
    )
